package com.serve.oa.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author __tyw
 * @since 2022-12-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class ComOrganization implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long parentId;

    private String name;

    @TableField(exist = false)
    @ExcelIgnore
    private List<ComOrganization> children = new ArrayList<>();



}
